import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import './assets/js/rem'
import './assets/css/index.sass'
import _ from 'lodash'
Vue.prototype.$http = axios
Vue.prototype._= _
Vue.config.productionTip = false
import VueLazyload from 'vue-lazyload'
router.beforeEach((to, from, next) => {
  document.documentElement.scrollTop = 0
  next()
})
Vue.use(VueLazyload, {
  preLoad: 1.4,
  loading: '/load.gif',
  attempt: 1
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
